//
//  NoBindingViewController.m
//  carcareIOS
//
//  Created by wr on 16/4/27.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import "NoBindingViewController.h"
#import "DriveCodeViewController.h"
@interface NoBindingViewController ()

@end

@implementation NoBindingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    __weak __typeof(self) wself = self;
    [self navSetupRightTitle:@"绑定盒子" action:^{
        [wself btnClick];
    }];
    
    UIImageView * backImageV = [Factory imageViewWithCenter:CGPointMake(__MAIN_WIDTH / 2 , __MAIN_HEIGHT_64_TABBAR  / 2 - 30) image:ImageNamed(@"NoBingdingBackImage") onView:self.view];
    [Factory labelWithFrame:CGRectMake(0, backImageV.center.y + ImageNamed(@"NoBingdingBackImage").size.height / 2 + 10, __MAIN_WIDTH, 20) font:FONT_DEFAULT_Light(16) text:@"好车主都绑定了，点击屏幕绑定～" textColor:[Theme wordGrayColor] onView:self.view textAlignment:NSTextAlignmentCenter];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self btnClick];
}
- (void)btnClick
{
    [SCREEN clear];
    DriveCodeViewController * vc = [[DriveCodeViewController alloc] init];
    __weak __typeof(self) wself = self;
    [vc navSetupLeftTitle:@"取消" action:^{
        [wself dismissViewControllerAnimated:YES  completion:nil];
    }];
    [self presentViewController:[UINavigationController navigationControllerWithRootViewController:vc] animated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
